<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>注册患者</title>
<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
   <div class="jumbotron">
        <h2>注册用户--------请输入您的相关信息</h2>
    </div>
<form action="<c:url value='/patientOption/addPatient2' />" method="POST">
   <table class="table table-hover text-center" style="font-size:30px ;font-family:仿宋;" >
     <thead class="thead-dark">
     <tr>
       <th width="43%" class="text-center">字段名</th>
       <th width="57%" class="text-center">字段值</th>
     </tr>
   </thead>
   <tbody>
   <tr class="danger text-danger" height="80">
       <td height="60">患者卡号</td>
       <td><input type="text" name="pID" readonly="readonly" value="${pID}"></td>
     </tr>
     <tr class="info text-primary"  height="80">
       <td>患者姓名</td>
       <td><input name="pName" placeholder="患者姓名" type="text" required="required" /></td>
     </tr>
     <tr class="danger text-danger" height="80">
       <td height="60">患者性别</td>
       <td><select name="pSex">
			<option value="男" selected="selected">男</option>
			<option value="女">女</option>
			</select></td>
     </tr>
     <tr class="info text-primary" height="80">
       <td height="60">患者年龄</td>
        <td><input type="text" placeholder="患者年龄" name="pAge" 
        pattern='[0-9]{1,3}' title='年龄最多3位数字'>
        </td>
     </tr>
     <tr class="danger text-danger" height="80">
       <td height="60">电话号码</td>
       <td><input  type="text" placeholder="电话号码" name="pTel" 
       pattern='[1][3,4,5,7,8,9][0-9]{9}' title='手机号码格式: 1+（3/4/5/7/8/9）+9位数字'>
       </td>
     </tr>
     <tr class="info text-primary"  height="80">
       <td>患者密码</td>
       <td><input  type="text"  placeholder="患者密码" name="password" required="required"  /></td>
     </tr>
     <tr>
       <td colspan="2"><input type="submit" class="btn btn-primary btn-lg" value="保存"></td>
     </tr>
  </tbody>
</table>
</form>
</div>
</body>
</html>